package com.locationbasedagent.server;

import com.google.web.bindery.requestfactory.shared.Locator;


public class LocationBasedAgentUserLocator extends
		Locator<LocationBasedAgentUser, Void> {

	@Override
	public LocationBasedAgentUser create(
			Class<? extends LocationBasedAgentUser> clazz) {
		// TODO no default constructor, creation code cannot be generated
		throw new RuntimeException(String.format("Cannot instantiate %s",
				clazz.getCanonicalName()));
	}

	@Override
	public LocationBasedAgentUser find(
			Class<? extends LocationBasedAgentUser> clazz, Void id) {
		return create(clazz);
	}

	@Override
	public Class<LocationBasedAgentUser> getDomainType() {
		return LocationBasedAgentUser.class;
	}

	@Override
	public Void getId(LocationBasedAgentUser domainObject) {
		return null;
	}

	@Override
	public Class<Void> getIdType() {
		return Void.class;
	}

	@Override
	public Object getVersion(LocationBasedAgentUser domainObject) {
		return null;
	}

}
